﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityFrameworkDemo.Models
{

    public class ApplicationDbContext
        : DbContext
    {

        public const string SqlCeConnectionString = "Data Source=EntityFrameworkDemoDb.sdf;";

        public DbSet<RecordModel> Records { get; set; }

        public ApplicationDbContext()
            : base()
        {
        }

        public ApplicationDbContext(string connectionString)
            : base(connectionString)
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

    }

}